/*
 * SingleElementInfoPanel.hpp
 *
 *  Created on: 09-01-2011
 *      Author: Przemek
 */

#pragma once

#include "gui/Container.hpp"
#include "world/Element.hpp"
#include "pch.hpp"

/*
 * Base class for every panel which displays selected element info.
 */
class SingleElementInfoPanel: public Container
{
	public:
		virtual std::string getSelectionName() const = 0;
		void tryUpdateFromSelection();

	protected:
		virtual const Element* getSelected() const = 0;
		virtual void updateFromSelection() = 0;
};

